package com.zhou.org.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author lang.zhou
 * @date 2022/8/24 9:59
 */
@Data
@ApiModel("角色保存模型")
public class RoleDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("组织架构id")
    private Integer orgId;

    @ApiModelProperty("描述")
    @Size(max = 100,message = "描述长度不能超过100")
    private String description;

    @ApiModelProperty("角色名称")
    @NotBlank(message = "不能为空")
    @Size(max = 50,message = "角色名称长度不能超过50")
    private String orgName;
}
